package com.novel.authorization.staff.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户实体
 *
 * @author 樊温军
 * @date 2025/3/18 上午10:32
 */
@Data
@ApiModel(description = "用户")
public class NfUser implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Long id;
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String uname;
    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String pwd;
    /**
     * 盐值
     */
    @ApiModelProperty(value = "盐值")
    private String salt;
    /**
     * 生效日期
     */
    @ApiModelProperty(value = "生效日期")
    private LocalDateTime effectTime;
    /**
     * 失效日期
     */
    @ApiModelProperty(value = "失效日期")
    private LocalDateTime expireTime;
    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private String status;
    /**
     * 最后登录时间
     */
    @ApiModelProperty(value = "最后登录时间")
    private LocalDateTime lastLogin;
    /**
     * VIP等级
     */
    @ApiModelProperty(value = "VIP等级")
    private Integer vip;
}
